package com.pansky.crm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ：zhouzhiyong
 * @date ：Created in 2021/2/22 10:33
 * @description：权限实体
 */
@Data
@TableName("t_privilege")
public class Privilege implements Serializable {
    private static final long serialVersionUID = -8678383766868943336L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer type;
    @TableField(value = "`name`")
    private String name;
    @TableField(value = "`key`")
    private String key;
    private String url;
    private Integer sort;
    private String parentKey;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy年MM月dd日 HH:mm:ss")
    private Date updateTime;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy年MM月dd日 HH:mm:ss")
    private Date createTime;
}
